package com.example.demo;

import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/getua")
public class GetUA {
    @RequestMapping("/ua")
    public String getUA(@RequestHeader("User-Agent") String userAgent) {
        return userAgent;
    }
}
